﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

namespace Models.Repository
{
    interface IRepository
    {
        T GetById<T>(Guid id) where T : EntityObject;
        List<T> GetAll<T>() where T : class;
        void Update<T>(T item) where T : class;
        void Save<T>(T item) where T : class;
        void Delete<T>(T item) where T : EntityObject;
    }
}
